﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ManagerCategories.aspx.cs" Inherits="project_web2.AdminTool.ManagerCategories" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 437px;
        }
        .style3
        {
            width: 221px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <table class="style1">
        <tr>
            <td>
                <table class="style1">
                    <tr>
                        <td class="style3">
                            &nbsp;</td>
                        <td class="style2">
                            &nbsp;</td>
                        <td>
                            <asp:Button ID="btnAdd" runat="server" onclick="btnAdd_Click" Text="Thêm" 
                                Width="55px" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <asp:GridView ID="grManagerCategories" runat="server" Width="736px" 
                    AutoGenerateColumns="False" DataKeyNames="categoryid" 
                    onpageindexchanging="grManagerCategories_PageIndexChanging" 
                    onrowcommand="grManagerCategories_RowCommand" 
                    onrowdatabound="grManagerCategories_RowDataBound">
                    <Columns>
                        <asp:BoundField DataField="SoTT" HeaderText="STT" />
                        <asp:BoundField DataField="categoryname" HeaderText="Danh mục" />
                        <asp:BoundField DataField="description" HeaderText="Miêu tả" />
                        <asp:BoundField DataField="createdate" HeaderText="Ngày tạo" />
                        <asp:BoundField DataField="status" HeaderText="Trạng thái" />
                        <asp:ButtonField ButtonType="Button" CommandName="Sua" HeaderText="Sửa" 
                            Text="Sửa" />
                        <asp:ButtonField ButtonType="Button" CommandName="Xoa" HeaderText="Xóa" 
                            Text="Xóa" />
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
        </tr>
    </table>
</asp:Content>
